<template>
	<view class="cal-content">
		<cu-custom :isBack="true" :isWhiteBack="true" style="background-color: transparent;">
			<block slot="backText"></block>
		</cu-custom>
		<view class="top"><image src="https://txr001.zthj.net/voucher_img/link.png"></image></view>
		<view class="datalink">
			<view class="datalink_title">建立数据链接</view>
			<view class="datalink_inpsut">
				<input  type="text" placeholder="请输入对方的青牒碳账户数字ID"/>
				<image src="https://txr001.zthj.net/voucher_img/shao.png"></image>
			</view>
			<view class="datalink_bnt">建立链接</view>
			<view class="link">推荐链接</view>
			<view class="datalink_list">
				<view class="list_left">
					<view class="list_title">数据供应商1</view>
					<view class="list_mina">
						<view class="list_mina_img"><image src=""></image></view>
						<view class="list_mina_text">副文本描述副文本描述副文本描述副文本描述</view>
					</view>
				</view>
				<view class="link_bnt">链接</view>
			</view>
		</view>
		<u-modal v-model="showmodal" :title="modalTitle" confirm-color="#24458E" @confirm="confirm"  :show-cancel-button="true" :confirm-text="confirmText" :confirm-style="confirmStyle">
		    <view class="slot-content">
		        <view class="modalTitles">{{textData}} </view>
		    </view>
		</u-modal>
	</view>
</template>

<script>
	export default {
	    components: {
	    },
	    data() {
	        return {
				confirmStyle:{
				    borderLeft:"1px solid #EBEBEB"
				},
				confirmText:"确认",
				showmodal:false,//是否显示弹窗
				modalTitle:"问卷申请",//弹窗标题
				textData:"您有一份来自某某某的问卷，是否接受并与某某某建立链接"//弹窗内容
			}
		},
		methods:{
			confirm(){
				console.log("确定")
			}
		}
	}
</script>

<style lang="less" scoped>
	.modalTitles{
	    text-align: center;
	    padding: 43rpx 0 57rpx 0 ;
	    font-size: 35rpx;
	    font-family: PingFang SC, PingFang SC;
	    font-weight: 400;
	    color: #333333;
	    line-height:110rpx;
	    border-bottom: 2rpx solid #EBEBEB;
	}
	.top{
		width: 100%;
		height: 624rpx;
		opacity: 1;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		background-color: red;
		image{
			width: 100%;
			height: 100%;
			display: block;
		}
	}
    .datalink{
		position: relative;
		width: 686rpx;
		background: #FFFFFF;
		border-radius: 48rpx 48rpx 48rpx 48rpx;
		padding: 48rpx 32rpx;
		margin: 0 auto;
		margin-top: 224rpx;
		.datalink_title{
			font-size: 40rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			color: #010101;
			line-height: 50rpx;
			margin-bottom: 26rpx;
		}
		.datalink_inpsut{
			border-radius: 8rpx 8rpx 8rpx 8rpx;
			opacity: 1;
			border: 2rpx solid #D9D9D9;
			padding: 16rpx 24rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			input{
				font-size: 28rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				color: #010101;
				line-height: 48rpx;
				flex: 1;
			}
			image{
				width: 48rpx;
				height: 48rpx;
				display: block;
			}
		}
		.datalink_bnt{
			width: 402rpx;
			height: 88rpx;
			background: #24458E;
			border-radius: 44rpx 44rpx 44rpx 44rpx;
			margin: 0 auto;
			margin-top: 48rpx;
			font-size: 32rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			color: #FFFFFF;
			line-height: 88rpx;
			text-align: center;
		}
		.link{
			margin-top: 80rpx;
			padding-bottom: 16rpx;
			border-bottom: 2rpx solid #D9D9D9;
			margin-bottom: 10rpx;
		}
		.datalink_list{
			padding-top: 48rpx;
			display: flex;
			justify-content: space-between;
			.list_left{
				flex: 1;
				.list_title{
					font-size: 32rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 500;
					color: #010101;
					line-height: 38rpx;
					margin-bottom: 24rpx;
				}
				.list_mina{
					display: flex;
					.list_mina_img{
						width: 120rpx;
						height: 120rpx;
						border-radius: 8rpx 8rpx 8rpx 8rpx;
						margin-right: 16rpx;
						overflow: hidden;
						image{
							width: 100%;
							height: 100%;
							display: block;
						}
					}
					.list_mina_text{
						flex: 1;
						font-size: 24rpx;
						font-family: PingFang SC, PingFang SC;
						font-weight: 400;
						color: #767879;
						line-height: 28rpx;
					}
				}
			}
			.link_bnt{
				width: 120rpx;
				height: 64rpx;
				border-radius: 32rpx 32rpx 32rpx 32rpx;
				border: 2rpx solid #24458E;
				text-align: center;
				line-height: 64rpx;
				margin-top: 10rpx;
				margin-left: 40rpx;
				font-size: 24rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 600;
				color: #24458E;
			}
		}
	}
</style>